package com.yangjun.dao.mybatis.mapper.realtimeLiveAnalysis;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.yangjun.entity.realtimeliveAnalysis.DvSearchKeyword;
import com.yangjun.entity.realtimeliveAnalysis.DvSearchKeywordNullResult;
import com.yangjun.entity.realtimeliveAnalysis.DvSearchKeywordURL;


public interface flowAnalysisMapper {
	public List<Map<String, Object>>  queryVisitTypeVisitors(@Param(value="siteid") int siteid);
	
	public List<Map<String, Object>>  querySourceAndDirection(@Param(value="siteid") int siteid,@Param(value="type") String type,@Param(value="index") String index);

	public List<Map<String, Object>>  queryVisitTypeSituation(@Param(value="siteid") int siteid);
	
	public List<Map<String, Object>>  queryVisitPath(@Param(value="siteid") int siteid,@Param(value="type") String type);

	public List<Map<String, Object>>  queryHotSearchkeyword(@Param(value="siteid") String siteid,@Param(value="type") String type,@Param(value="size") int size);

	public List<DvSearchKeyword>  querySearchkeyword(@Param(value="siteid") String siteid,@Param(value="size") int size);

	public List<DvSearchKeywordURL>  querySearchkeywordURL(@Param(value="siteid") String siteid,@Param(value="searchKeyword") String searchKeyword);
	
	public List<Map<String, Object>>  querySearchKeywordNullResult();
	
	public void  deleteSearchKeywordByNullResult(); 
	
	public void  insertSearchKeywordByNullResult(List<Map<String,String>> searchKeywordNullResultList); 
	
	public List<DvSearchKeywordNullResult>  queryNullResult(@Param(value="siteid") String siteid); 
	
	void  deleteSearchKeywordNullResultByBeforeDate(@Param(value="date") String date); 
	
	void  deleteSearchKeywordByBeforeDate(@Param(value="date") String date); 
	
	void  deleteSearchKeywordURLByBeforeDate(@Param(value="date") String date); 

	
}
